<template>
  <el-input
      v-model="value"
      :disabled="disabled"
      :placeholder="field.placeholder || '请输入'"
  ></el-input>
</template>

<script setup lang="ts">
import {computed} from "vue";
import type {MetaField} from "../../../types/cell.types";

const props = defineProps<{
  modelValue: any,
  field: MetaField,
  disabled: boolean,
}>()

const emit = defineEmits(['update:modelValue'])

const value = computed({
  get: () => props.modelValue,
  set: (val) => emit('update:modelValue', val)
})
</script>

<style scoped>

</style>